<script type="text/javascript">
$(function() {
	moduls_menu_checkParentEffect('moduls_fun_menuPorperty_Form');
	
	moduls_menu_addClickOnUpFileInput('inputType');
	
	moduls_menu_addClickOnSetPlaceInput('inputType2');
	
	$.ajax({
		url : 'menuController/getMenuPro.do',
		data : {
			menuId : moduls_menu_menuId
		},
		cache : false,
		dataType : 'JSON',
		success : function(r) {
			$(r).each(function(i,value) {
				if(value.proKey == 'isZw') {
					if(value.proValue == 1) {
						$("#moduls_fun_menuPorperty_Form input[name='isZw']").attr('checked','checked');
					}
				} else {
					$("#moduls_fun_menuPorperty_Form input[name='"+value.proKey+"']").val(value.proValue);
				}
				
			});
		}
	});		
	
	yy.upFile.callback = setFileName;
	yy.upFile.saveFileName = "menuFiles";
	
});
function setFileName(result) {
	if(!result.success) {
		$.messager.show({
			msg : result.info,
			title : '提示'
		});
		return;
	}
	$("#moduls_fun_menuPorperty_Form input[name='"+moduls_fun_menuPorperty_inputName+"']").val(result.obj);
	moduls_fun_menuPorperty_dialog.dialog('destroy');
}

function moduls_fun_menuPro_getFormValue() {
	var obj = {};
	var value = $("#moduls_fun_menuPorperty_Form").serialize();
	if($("#moduls_fun_menuPorperty_Form input[name='isZw']").attr('checked') == undefined) {
		value = value + '&isZw=0';
	}
	
	obj.falg = true;
	obj.value = value;
	return obj;
}

function setHotPointValue(point,iconName) {
	$("#moduls_fun_menuPorperty_Form input[name='"+moduls_fun_menuPorperty_hotPointValueInputName+"']").val(point);
	$("#moduls_fun_menuPorperty_Form input[name='"+moduls_fun_menuPorperty_hotPointIconInputName+"']").val(iconName);
}
</script>
<div align="center">
	<br />
	<form id="moduls_fun_menuPorperty_Form" method="post">
		<table class="tableForm">
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">菜单图片:</th>
				<td><input name="nodeMenuPicture" inputType="1" class="easyui-validatebox inputCss" style="width: 180px;" readonly="readonly" data-options="required:true" />
				</td>
			</tr>
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">背景图片:</th>
				<td><input name="nodeDescriptionLabelImageFile" inputType="1" class="easyui-validatebox inputCss" style="width: 180px;" readonly="readonly" data-options="required:true" />
				</td>
			</tr>
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">菜单音效:</th>
				<td><input name="nodePickedSound" inputType="1" class="easyui-validatebox inputCss" style="width: 180px;" readonly="readonly" data-options="required:true" />
				</td>
			</tr>
			<tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">背景音乐:</th>
				<td><input name="nodeMusicFile" inputType="1" class="easyui-validatebox inputCss" style="width: 180px;" readonly="readonly" data-options="required:true" />
				</td>
			</tr>
			<!-- <tr>
				<th style="width: 60px;font-size: 12px; font-weight: normal;">是否占位:</th>
				<td><input type="checkbox" id="isZw" name="isZw" value="1" />
				</td>
			</tr> -->
		</table>
	</form>
</div>